import axios from "./index"



export const getBeforeCredit = (params) => {
    console.log(params);

    return axios({
        url: "/borrowCenter/beforeCredit",
        method: "POST",
        data: params
    })
}

export const auditAdd = (params) => {
    console.log(params);
    return axios({
        url: "/borrowCenter/addAudit",
        method: "POST",
        data: params
    })
}
export const getCaptcha = () => {
    return axios({
        url: "/user/getCaptcha",
        method: "POST"
    })
}

export const login = (params) => {
    console.log(params);
    return axios({
        url: "/user/login",
        method: "POST",
        data: {
            user_account: params.username,
            user_password: params.password
        },
        params: {
            captchaKey: params.key,
            captchaValue: params.code
        }
    })
}
export const logout = (params) => {
    console.log(params);
    return axios({
        url: "",
        method: "",

    })
}